package net.chenlin.dp.modules.business.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import net.chenlin.dp.common.entity.Page;
import net.chenlin.dp.modules.business.entity.vo.file.FileListVo;
import net.chenlin.dp.modules.business.service.ImportFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author Yangsm
 * @ClassName: ImportFileController
 * @Description: TODO
 * @date 2023年05月08日 22:14
 */
@RestController
@RequestMapping("/file")
@Api(tags = "文件导入管理")
public class ImportFileController {

    @Autowired
    private ImportFileService importFileService;

    @RequestMapping(value = "/getImportFileList", method = RequestMethod.POST)
    @ApiOperation(value = "导入文件列表")
    public Page<FileListVo> getImportFileList(@RequestBody Map<String, Object> params) {
        return importFileService.getImportFileList(params);
    }
}
